package com.suarte.core.hibernate;

import org.springframework.stereotype.Repository;
import org.appfuse.dao.hibernate.GenericDaoHibernate;
import com.suarte.core.Resolution;
import com.suarte.core.dao.ResolutionDao;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: gcastillo
 * Date: Mar 14, 2011
 * Time: 12:15:01 PM
 * To change this template use File | Settings | File Templates.
 */

@Repository("resolutionDao")
public class ResolutionDaoHibernate extends GenericDaoHibernate<Resolution, Long> implements ResolutionDao {
    public ResolutionDaoHibernate() {
        super(Resolution.class);
    }

    public List<Resolution> findByDescription(String description) {
        return getHibernateTemplate().find("from Resolution where description = ?", description);
    }
}